//
//  ALPListenListMoreCellSmall.m
//  AlpFM
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Alp. All rights reserved.
//

#import "ALPListenListMoreCellSmall.h"

@interface ALPListenListMoreCellSmall ()
@property (nonatomic, strong) UIImageView *myImage;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *describeLabel;
@property (nonatomic, strong) UILabel *nameLabel;
@property (nonatomic, strong) UIImageView *quanImage;
@property (nonatomic, strong) UIImageView *jiantouImage;
@property (nonatomic, strong) UIImageView *xixian;//细线
@end

@implementation ALPListenListMoreCellSmall

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creat];
    }
    return self;
}
-(void)creat{
    self.xixian = [[UIImageView alloc]initWithFrame:CGRectMake(80, 80, 293, 3)];
    self.xixian.image = [UIImage imageNamed:@"xixian"];
    [self.contentView addSubview:self.xixian];
    
    self.myImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 60, 60)];
    [self.contentView addSubview:self.myImage];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(80, 10, 295, 20)];
    self.titleLabel.font = [UIFont boldSystemFontOfSize:18];
    [self.contentView addSubview:self.titleLabel];
    
    self.describeLabel = [[UILabel alloc]initWithFrame:CGRectMake(80, 32, 260, 15)];
    self.describeLabel.font = [UIFont boldSystemFontOfSize:14];
    self.describeLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.describeLabel];
    
    self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(95, 50, 260, 10)];
    self.nameLabel.font = [UIFont boldSystemFontOfSize:12];
    self.nameLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.nameLabel];
    
    self.quanImage = [[UIImageView alloc]initWithFrame:CGRectMake(80, 50, 10, 10)];
    self.quanImage.image = [UIImage imageNamed:@"quan"];
    [self.contentView addSubview:self.quanImage];
    
    
    self.jiantouImage = [[UIImageView alloc]initWithFrame:CGRectMake(355, 30, 20, 18)];
    self.jiantouImage.image = [UIImage imageNamed:@"jiantou1"];
    [self.contentView addSubview:self.jiantouImage];
    
}
-(void)setMol:(ALPListenListMoreModel *)mol{
    _mol = mol;
    self.titleLabel.text = _mol.title;
    self.describeLabel.text = _mol.subtitle;
    self.nameLabel.text = _mol.footnote;
    [self.myImage sd_setImageWithURL:[NSURL URLWithString:_mol.coverPathSmall] placeholderImage:nil];
}



@end
